//更新客户端文件
module.exports.run = (data, c) => {
    var path = data.json.toString();
    const child_process = require('child_process');
    child_process.exec("wget http://192.168.0.200" + path + " -O /data/client" + path, (error, stdout, stderr)=>{
        console.log("cmd：8 -->> wget :", stdout, stderr);
        if(error){
            console.error("cmd：8 -->> wget error:", error);
        }else{
            path = "/data/client"+path;
            if(require.cache[path]){
                var md = require(path);
                if(md.destroy)
                {
                    md.destroy();
                }
                delete require.cache[path];
                console.log(path + ' cache is delete');
                require(path);
            } else{
                console.log(path + ' not cache');
            }
        }
    });
};